package com.haier.npt.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.haier.npt.demo.dao.DemoDao;
import com.haier.npt.demo.domain.Demo;
import com.haier.npt.demo.service.DemoService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lixu
 * @since 2018-07-17
 */
@Service
public class DemoServiceImpl extends ServiceImpl<DemoDao, Demo> implements DemoService {
	
	@Autowired
	private DemoDao dao;

	@Override
	public Page<Demo> getDemoList(Page<Demo> page) {
		List<Demo> list = dao.getDemoList(page);
		page.setRecords(list);
		return page;
	}
	
}
